package com.foreveross.fetl.common.cfg.system;

import com.foreveross.fetl.common.cfg.ConfigContainer;
import com.foreveross.fetl.common.cfg.ConfigLocalLoader;
import com.foreveross.fetl.common.cfg.PropertiesConfigLocalLoader;

public class DefaultPropertiesLoader extends PropertiesConfigLocalLoader implements ConfigLocalLoader{

	public final static String CONFIG_FILE = "config.properties";

	public String getFileName() {
		return CONFIG_FILE;
	}
	/**
	 * 版本号
	 */
	public static final String CRAWL_VERSION = "fetl.version";
	/**
	 * 服务名称
	 */
	public static final String CRAWL_SERVER_NAME = "fetl.servername";
	
	public static String getVersion(){
		return ConfigContainer.getInstance().get(CRAWL_VERSION, CONFIG_FILE);
	}
	
	public static String getServerName(){
		return ConfigContainer.getInstance().get(CRAWL_SERVER_NAME, CONFIG_FILE);
	}
	
}
